package com.neulogistics.core.customercenter.api.application.query;

import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;

@Data
public class OrderQuery implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 当前页号
     */
    @Positive(message = "当前页数非法！")
    public long pageNum = 1;

    /**
     * 页面大小
     */
    @Positive
    @Max(value = 20, message = "请求数据过多！")
    public long pageSize = 10;

    /**
     * 订单id
     */
    public Long orderId;

    /**
     * 订单类型：1：配送单；2：退货单；3：换货单
     */
    public Integer orderType;

    /**
     * 客户id
     */
    public Integer customerId;

    /**
     * 订单状态：0:新建；1:缺货；2:待调度；3:待出库；4:运输中；5:到达分站；6:派送中；7:已完成；8:已退货；9:已换货
     */
    public int[] orderStatus;

    /**
     * 收货人名
     */
    public String receiverName;

    /**
     * 创建人id
     */
    public Integer creatorId;
}
